package com.tanhua.dubbo.api;

import com.itheima.model.enmus.CommentSubject;
import com.itheima.model.enmus.CommentType;
import com.itheima.model.mongo.Comment;


import java.util.List;


public interface CommentApi {

    //发布评论,并获取评论数量
    Integer commit(Comment comment1);

    //分页查询
    List<Comment> findCommendList(String movementId, CommentType commentType, Integer page, Integer pagesize);

    //判断comment数据是否存在
    Boolean likeComment(String movementId, Long userId, CommentType like);

    //删除点赞数据
    Integer delete(Comment comment);

    //取消动态评论点赞
    Integer deleteLikeComment(Comment comment, CommentSubject commentSubject);

    //判断Comment数据是否存在
    Boolean hasComment(String movementId, Long userId, CommentType commentType);

    Integer saveCommentLike(Comment comment, CommentSubject commentSubject);

}